package dk.viauc.cmclang.intlang.ast;

import dk.viauc.cmclang.intlang.Address;

public class VariableDeclaration extends Declaration {
	public Identifier id;
	public Type type;
	public Address adr;
	public Expression term;
	
	public VariableDeclaration(Identifier id,Type type) {
		this.id = id;
		this.type=type;
		term=null;
	}
	public VariableDeclaration(Identifier id,Type type,Expression term) {
		this.id = id;
		this.type=type;
		this.term=term;
	}
	
	public Object visit( Visitor v, Object arg )
	{
		return v.visitVariableDeclaration( this, arg );
	}
	
}
